import { ref } from 'vue'
import { getParkInfoAPI } from '@/api/park.js'

// 获取园区信息
function useInitParkInfo() {
    const parkInfo = ref({})
    const getParkInfo = async () => {
        const res = await getParkInfoAPI()
        console.log(res)
        parkInfo.value = res.data
    }
    return { parkInfo, getParkInfo }
}

export { useInitParkInfo }